return “Humans are special mammals who can speak and walk
with two legs”;
}
}
A. No issues, the code would compile, get deployed, and run
B. The code would throw a compilation error as the function in the
child contract is not declared override
C. The code would throw a runtime error as the function in the
child contract is not declared override
D. The code would throw a runtime error for improper use of the
virtual keyword in the function of the child contract
Q88: In what situation can we use an abstract contract with no virtual
function?
A. We can’t have any such abstract contract
B. When we do not want the contract to get instantiated
C. We can always do so but it would not be of any use
D. None of these
Q89: Under what condition are the abstract contracts used?
A. When we have to implement a group of behavior in contracts
with some common functionalities
B. To promote clean coding
C. To prohibit code duplication
D. Both A and C
Q90: When should we use interface instead of abstract contract?
A. When
we
are
building
large,
complex,
decentralized
applications
B. When we are designing larger scale decentralized applications
prior to their comprehensive implementations
C. When we need to facilitate extensibility in your dapps without
introducing added complexity